package com.shr.xsunmvc.db;

import com.shr.xsunmvc.db.sqlutil.GenerateSql;
import com.shr.xsunmvc.db.sqlutil.MySqlGenerateSql;

/**
 * 类型工厂
 * @author sun haoran
 *
 */
public class TypeFactory {

	public static GenerateSql getType(Type sqlType) {
		if(sqlType == Type.MYSQL)
			return new MySqlGenerateSql() ;
		else throw new RuntimeException("Unsupported database type !") ;
	}
	
}
